﻿<UserControl x:Class="ScrumTable.UI.View.WinTouch.UserControls.ScrumPokerCardControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Converter="clr-namespace:ScrumTable.UI.View.Converter;assembly=ScrumTable.UI.View"
             xmlns:Presentation="clr-namespace:Microsoft.Surface.Presentation;assembly=Microsoft.Surface.Presentation"
             xmlns:Localization="clr-namespace:ScrumTable.UI.View.Localization;assembly=ScrumTable.UI.View" Width="120" Height="68" Presentation:SurfaceDragDrop.Drop="OnDrop">
    <UserControl.Resources>
        <Converter:ConverterEnumEqual x:Key="ConverterEnum"/>
        <Converter:ConverterBoolVisibility x:Key="ConverterBoolVisibility"/>
        <Converter:ConverterNotBoolVisibility x:Key="ConverterBoolNotVisibility"/>
    </UserControl.Resources>
    <Grid>
        <Border Background="White" BorderThickness="1" BorderBrush="Black" CornerRadius="2" >
            <Grid Name="RootGrid">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50"/>
                    <ColumnDefinition Width="70"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="32"/>
                    <RowDefinition Height="18"/>
                    <RowDefinition Height="18"/>
                </Grid.RowDefinitions>
                <UserControl Background="{Binding Color}" Grid.Column="1"  Grid.RowSpan="2"/>                
                <Label Content="?" Visibility="{Binding IsHidden, Converter={StaticResource ConverterBoolVisibility}}" FontSize="20" Margin="0,0,0,8" Grid.RowSpan="2"  FontWeight="Bold"  HorizontalAlignment="Center" VerticalAlignment="Center"/>
                <Label Content="{Binding Number}" Background="Transparent" Visibility="{Binding IsHidden, Converter={StaticResource ConverterBoolNotVisibility}}" FontSize="20" Margin="0,0,0,8" Grid.RowSpan="2"  FontWeight="Bold"  HorizontalAlignment="Center" VerticalAlignment="Center"/>
                <TextBlock Margin="3,0,3,0" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" Text="{Localization:Translate Uid=ScrumPoker_Points, Default=[Punkte]}" FontSize="12" TextTrimming="CharacterEllipsis" />                               
            </Grid>
        </Border>           
    </Grid>
</UserControl>
